home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cocktail
/
lalr.lha
/
lalr
/
src
/
Debug.md
< prev
next >
Wrap
Text File
|
1992-08-18
|
1KB
|
49 lines
(* compute debugging information *)
(* $Id: Debug.md,v 1.3 1991/11/21 14:53:14 grosch rel $ *)
(* $Log: Debug.md,v $
* Revision 1.3 1991/11/21 14:53:14 grosch
* new version of RCS on SPARC
*
* Revision 1.2 90/06/12 16:53:52 grosch
* renamed main program to lalr, added { } for actions, layout improvements
*
* Revision 1.1 89/05/02 14:35:09 vielsack
* new option: -v (verbose)
* NoTrace is used instead of NoDebug
*
* Revision 1.0 88/10/04 14:36:03 vielsack
* Initial revision
*
*)
DEFINITION MODULE Debug;
FROM IO IMPORT tFile;
FROM Sets IMPORT tSet;
FROM Automaton IMPORT tItemIndex, tStateIndex;
FROM TokenTab IMPORT Terminal;
TYPE tConflict = (ShRed, RedRed, ShRedRed);
VAR
NoTrace : BOOLEAN;
dFile : tFile;
PROCEDURE DebugHead (State: tStateIndex);
PROCEDURE DebugState (State: tStateIndex; VAR Set: tSet);
PROCEDURE DebugEnd;
(* Erzeuge Zusatzinformation zum Zustand 'State' mit Konfliktmenge 'Set' *)
PROCEDURE InformIgnored (Item: tItemIndex; t: Terminal);
PROCEDURE InformLowPri (Item: tItemIndex; t: Terminal);
PROCEDURE InformLeftAss (Item: tItemIndex; t: Terminal);
PROCEDURE InformRightAss(Item: tItemIndex; t: Terminal);
PROCEDURE InformKept (Item: tItemIndex; t: Terminal);
PROCEDURE InformConflict(kind: tConflict);
PROCEDURE NewLine;
END Debug.